package com.eascs.admin.o2o.creditarchive.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.archive.entity.CreditArchiveRecordEntity;


@Repository
public class CreditArchiveBaseDao extends BaseO2oDao{
	
	
	public CreditArchiveRecordEntity getCreditArchiveRecordById(String id) {
		String sql="select * from o2o_credit_archive_record u where u.id = ? ";
		return findEntity(sql, CreditArchiveRecordEntity.class,id);
	}
	
	public boolean updateCreditArchive(String sql ,Object[] o){
		int i=execute(sql,o);
		return i>0?true:false;
	}
	
	

}
